using System.Linq;
using Framework.Core.Io;
using Xunit;

namespace Framework.Tests.Core.Io
{
    public class AssemblyAdapterTest
    {
        private readonly IAssemblyAdapter target = new AssemblyAdapter();
        
        [Fact]
        public void Test_GetEntryAssembly_Succeed()
        {
            //Hack Because EntryAssemblie is null in TU context
            Assert.Null(target.GetEntryAssembly());
        }

        [Fact]
        public void Test_GetAssembliesOfCurrentAppDomain_Succeed()
        {
            Assert.True(target.GetAssembliesOfCurrentAppDomain().Any());
        }
    }
}